import request from '@/utils/request'

// 查询任务依赖关系列表
export function listDependencies(query) {
  return request({
    url: '/hanyun/dependencies/list',
    method: 'get',
    params: query
  })
}

// 查询任务依赖关系详细
export function getDependencies(id) {
  return request({
    url: '/hanyun/dependencies/' + id,
    method: 'get'
  })
}

// 新增任务依赖关系
export function addDependencies(data) {
  return request({
    url: '/hanyun/dependencies',
    method: 'post',
    data: data
  })
}

// 修改任务依赖关系
export function updateDependencies(data) {
  return request({
    url: '/hanyun/dependencies',
    method: 'put',
    data: data
  })
}

// 删除任务依赖关系
export function delDependencies(id) {
  return request({
    url: '/hanyun/dependencies/' + id,
    method: 'delete'
  })
}
